export * from './types';
export { clearDynamicRoutes } from './core/router';

import { initRouter } from './core/router';
import type { RouterConfig } from './types';

// RouterPlus
export default {
  install(app: any, options?: RouterConfig) {
    const router = app.config.globalProperties.$router;
    initRouter(router, options || {});
  },
};
